Some applications won't use the ART Toolbar, or will provide the Toolbar and other options for creating marks. In that case, a function in your application will need to create the marks directly. ART marks are created by using their objects. For example, a rectangle can be created as follows:
Copy Code | |
---|---|
IG_ARTX_rectangle_create(pRectangle, pFillColor, pBorder, nOpacity, &hRectMark); |
Once it is created, it should be added to the ART page:
Copy Code | |
---|---|
IG_ARTX_page_mark_add(hArtPage, hRectMark, nCoordType, &hRectMark); |
Mark properties can be edited at any time:
Copy Code | |
---|---|
IG_ARTX_rectangle_opacity_set(_hRectMark, 128); |